-- GENERATED SPELL FOR [Fumblub Gearwind] --


function spell0_32358(pUnit, Event) --@Machine Gun,n/a--
pUnit:FullCastSpellOnTarget(60906,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32358', 5000, 1)
end

function spell1_32358(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32358', 605, 1)
end

function Sorts_32358(pUnit, Event)
local choix_sorts_32358 = math.random(0, 1)
if choix_sorts_32358 == 0 then
pUnit:RegisterEvent('spell0_32358', 1, 1)
end
if choix_sorts_32358 == 1 then
pUnit:RegisterEvent('spell1_32358', 1, 1)
end
end

function mob32358_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32358', math.random(1500, 3000), 1)
end

function mob32358_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32358_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32358_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32358, 1, 'mob32358_Action')
RegisterUnitEvent(32358, 2, 'mob32358_Leave')
RegisterUnitEvent(32358, 3, 'mob32358_Kill')
RegisterUnitEvent(32358, 4, 'mob32358_Die')
